<form id="registrationForm" action="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=updateUser&amp;pageID={$pageID}&amp;fp=t" method="post">
	<fieldset>
		<legend>Administracija</legend>
	    <table>
	    	<tbody>
	            <tr>
	            	<td><label for="id">Id</label></td>
	            	<td><input id="id" type="text" name="id" size="5" value="{$user.id}" readonly="true"/></td>
	            </tr>
	            <tr>
	            	<td><label for="active">Aktiven</label></td>
	            	<td><input id="active" type="checkbox" name="active" {if $user.active}checked{/if} /></td>
	            </tr>
	            <tr>
	            	<td colspan="2"><label for="comment">Opombe</label></td>
	            </tr>
	            <tr>
	            	<td colspan="2"><textarea id="comment" name="comment" rows="5" cols="40">{$user.comment}</textarea></td>
	            </tr>
	        </tbody>
	    </table>
	</fieldset>
	<br />
	<fieldset>
	    <legend>Osebni podatki</legend>
	    <input type="hidden" id="key" name="{$key}" />
	    <table>
	        <tbody>
	            <tr>
	                <td><label for="name">Ime *</label></td>
	                <td><input id="name" type="text" name="name" size="25" value="{$user.name}"/></td>
	            </tr>
	            <tr>
	                <td><label for="surname">Priimek *</label></td>
	                <td><input id="surname" type="text" name="surname" size="25" value="{$user.surname}"/></td>
	            </tr>
	            <tr>
	                <td><label for="phone">Hišni telefon</label></td>
	                <td><input id="phone" type="text" name="phone" size="25" value="{$user.phone}"/></td>
	            </tr>
	            <tr>
	                <td><label for="cell">Prenosni telefon</label></td>
	                <td><input id="cell" type="text" name="cell" size="25" value="{$user.cell}"/></td>
	            </tr>
	        </tbody>
	    </table>
	</fieldset>
	<br />
	<fieldset>
	    <legend>Podatki za prijavo</legend>
	    <table>
	        <tbody>
	            <tr>
                    <td><label for="username">Uporabniško ime *</label></td>
                    <td>
						<input id="username" type="text" name="username" size="10" value="{$user.username}"/>
					</td>
					<td>
						<img src="images/{$smarty.session.znf.theme}/userAvailable.png" alt="Uporabniško ime je prosto" style= "visibility: hidden" id="checkUsernameIcon" />
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td colspan="2">
						<a class="button small" id="checkUsername" href="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=checkUsername"> Je upor. ime zasedeno?</a>
					</td>
                </tr>
	                <td><label for="email">E-mail naslov *</label></td>
	                <td colspan="2"><input id="email" type="text" name="email" size="25" value="{$user.email}"/></td>
	            </tr>
	            <tr>
	            	 <td><label for="email">Geslo</label></td>
	                <td colspan="2"><input id="password" type="text" name="password"/></td>
	            </tr>
	        </tbody>
	    </table>
	</fieldset>
	<br />
	<fieldset>
	    <legend>IM podatki</legend>
	    <table>
	        <tbody>
	        	<tr>
	                <td><label for="msn">MSN naslov</label></td>
	                <td><input id="msn" type="text" name="msn" size="25" value="{$user.msn}"/></td>
	            </tr>
	            <tr>
	                <td><label for="icq">Icq številka</label></td>
	                <td><input id="icq" type="text" name="icq" size="25" value="{$user.icq}"/></td>
	            </tr>
	            <tr>
	                <td><label for="skype">Skype ime</label></td>
	                <td><input id="skype" type="text" name="skype" size="25" value="{$user.skype}"/></td>
	            </tr>
	        </tbody>
	    </table>
	</fieldset>
	<p>
	  Polja, označena z zvezdico (*), so obvezna.
	</p>
	<div class="buttons">
	    <a id="back" class="button" href="index.php?znfModule=user&amp;znfAction=list&amp;pageID={$pageID}&amp;fp=t">Nazaj</a>
	    <button type="reset" class="button">Prekliči</button>
	    <button type="submit" id="submitButton" class="button positive">Predloži</button>
	</div>
</form>